package com.zr.repertory.affiliation.model.pojo;

import com.zr.share.config.ErrorMassage;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @ClassName AddBelongVo
 * @Description TODO
 * @Author Jiakui_Ma
 * @Date 2019/11/22 7:21
 */
@Data
public class AddBelongVo {


    /**
     * legalPersonId : 1
     * legalPersonName : 联想（北京）有限公司
     * wareHouseId : 1
     * companyStorageSectionValueList : [{"storageSectionId":1},{"storageSectionId":3}]
     * status : true
     * companyStorageBinValueList : [{"storageBinId":2},{"storageBinId":3}]
     */
    @NotNull( message = ErrorMassage.LEGAL_PERSON_ID_NOT_NULL)
    private Integer legalPersonId;

    @Valid
    @NotEmpty(message = ErrorMassage.STORAGE_BIN_LEAST_NOT_NULL)
    private List<StorageBinList> companyStorageBinValueList;


}
